projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e2517
)
mips: mt76xx: linkit-smart-7688: Use ioremap_nocache to get address
author
Stefan Roese
<
[email protected]
>
Tue, 9 Oct 2018 06:59:15 +0000
(08:59 +0200)
committer
Daniel Schwierzeck
<
[email protected]
>
Sun, 18 Nov 2018 15:02:23 +0000
(16:02 +0100)
Use the correct function to get the uncached address to access the SoC
registers.
Signed-off-by: Stefan Roese <
[email protected]
>
Cc: Daniel Schwierzeck <
[email protected]
>
board/seeed/linkit-smart-7688/board.c
patch
|
blob
|
history
diff --git
a/board/seeed/linkit-smart-7688/board.c
b/board/seeed/linkit-smart-7688/board.c
index a28abc00b8c3ab0d5ba16d13c75d262caaa3ade2..d3d3d50c2c6f7a8e207182e155c9879da989f1b7 100644
(file)
--- a/
board/seeed/linkit-smart-7688/board.c
+++ b/
board/seeed/linkit-smart-7688/board.c
@@
-6,12
+6,15
@@
#include <common.h>
#include <asm/io.h>
-#define MT76XX_GPIO1_MODE 0x
b
0000060
+#define MT76XX_GPIO1_MODE 0x
1
0000060
void board_debug_uart_init(void)
{
+ void __iomem *gpio_mode;
+
/* Select UART2 mode instead of GPIO mode (default) */
- clrbits_le32((void __iomem *)MT76XX_GPIO1_MODE, GENMASK(27, 26));
+ gpio_mode = ioremap_nocache(MT76XX_GPIO1_MODE, 0x100);
+ clrbits_le32(gpio_mode, GENMASK(27, 26));
}
int board_early_init_f(void)